import request from '@/utils/request'

// 获取路由
export function allPointList (query)  {
  return request({
    url: 'system/point/list',
    method: 'get',
    params: query
  })
}

export function addPoint (data)  {
  return request({
    url: 'system/point/insertPoint',
    method: 'post',
    data: data
  })
}
// 删除用户
export function delPoint(userId) {
  return request({
    url: 'system/point/' + userId,
    method: 'delete'
  })
}
